package org.lc.oauth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@Schema(description = "返回前端的用户信息")
public class UserVo {

    @Schema(name = "主键")
    private String userId;

    @Schema(name = "昵称")
    private String nickName;

    @Schema(name = "账号")
    private String username;

    @Schema(name = "是否是超级管理员")
    private boolean superAdmin;

    @Schema(name = "角色")
    private List<String> roles = new ArrayList<>();

    @Schema(name = "菜单权限")
    private List<Object> acls = new ArrayList<>();

    @Schema(name = "菜单列表")
    private List<Object> menus = new ArrayList<>();
}